package com.dudetest.dude;

public abstract class DudeABImpl extends DudeImpl implements DudeAB {

	public DudeABImpl(){
		super();
	}
	
	public DudeABImpl(long id) {
		super(id);
	}

	@Override
	public int getN(){
		return this.getA()+this.getB();
	}

	@Override
	public String toString(){
		return "DudeABImpl = [Id="+this.getId()+", "
			+"Reference="+this.getReference()+", "
			+"A="+this.getA()+", "
			+"B="+this.getB()
			+"]";
	}
}
